package com.wnnight.wys.serviceImpl.menu;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wnnight.wys.entity.menu.Menu;
import com.wnnight.wys.mapper.menu.MenuMapper;
import com.wnnight.wys.service.menu.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @ClassName: MenuServiceImpl
 * @Description: //TODO
 * @author: CHX42
 * @date: 2022/9/9-10:44
 * @version: v1.0
 */
@Service
@Transactional
public class MenuServiceImpl  extends ServiceImpl<MenuMapper, Menu> implements MenuService {

    @Autowired
    private MenuMapper menuMapper;

   @Override
    public Page<Menu> menuPage(Page<Menu> page,QueryWrapper<Menu> wrapper){
       return menuMapper.getMenuPage(page,wrapper);
   }
}
